<layout name='layout' />

<div class="admin-main">
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>添加</legend>
	</fieldset>

	<form id="ajaxForm" class="layui-form" method="post" action="<{:U('User/add')}>">
		<div class="layui-form-item">
			<label class="layui-form-label">用户名</label>
			<div class="layui-input-inline">
				<input type="text" name="username" lay-verify="__username" placeholder="请输入用户名" class="layui-input">		
			</div>
			<p class="layui-form-mid layui-word-aux">请输入用户名，2-15个字符之间</p>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">密码</label>
			<div class="layui-input-inline">
				<input type="password" id="password" name="password" lay-verify="__password" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">重复密码</label>
			<div class="layui-input-inline">
				<input type="password" name="repassword" lay-verify="__repassword" class="layui-input">
			</div>
		</div>	

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">状态</label>
			<div class="layui-input-inline">
				<input type="radio" name="status" value="1" title="开启" checked="checked">
				<input type="radio" name="status" value="0" title="关闭">
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">用户组</label>
			<div class="layui-input-inline">
				<select id="group" name="group" lay-verify="required">
					<option value="">==请选择==</option>
					<volist name="group" id="vo">
						<option value="<{$vo.id}>"><{$vo.name}></option>
					</volist>
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-inline">
				<input type="text" id="name" name="name" class="layui-input" lay-verify="required">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">电话</label>
			<div class="layui-input-inline">
				<input type="text" id="phone" name="phone" class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
			</div>
		</div>
	</form>
</div>